import { fromJS } from 'immutable';
import * as constants from './constants';

const defaultState = fromJS({
	typeList: [
        { title: 'all' },
        { title: 'vue' },
        { title: '理财' },
    ]
});

export default (state = defaultState, action) => {
	// switch(action.type) {
	// 	case constants.CHANGE_HOME_DATA:
	// 		return changeHomeData(state, action);
	// 	case constants.ADD_ARTICLE_LIST:
	// 		return addArticleList(state, action);
	// 	case constants.TOGGLE_SCROLL_TOP:
	// 		return state.set('showScroll', action.show);
	// 	case constants.GET_PROJECT_LIST:
	// 		return state.set('projectList', action.data);
	// 	default:
	// 		return state;
    // }
    return state;
}